import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/house_authentication_list_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class HouseAuthenticationListEntity {
	late int code;
	late HouseAuthenticationListObj obj;
	late String msg;

	HouseAuthenticationListEntity();

	factory HouseAuthenticationListEntity.fromJson(Map<String, dynamic> json) => $HouseAuthenticationListEntityFromJson(json);

	Map<String, dynamic> toJson() => $HouseAuthenticationListEntityToJson(this);

	HouseAuthenticationListEntity copyWith({int? code, HouseAuthenticationListObj? obj, String? msg}) {
		return HouseAuthenticationListEntity()
			..code= code ?? this.code
			..obj= obj ?? this.obj
			..msg= msg ?? this.msg;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HouseAuthenticationListObj {
	late List<HouseAuthenticationListObjList> list;

	HouseAuthenticationListObj();

	factory HouseAuthenticationListObj.fromJson(Map<String, dynamic> json) => $HouseAuthenticationListObjFromJson(json);

	Map<String, dynamic> toJson() => $HouseAuthenticationListObjToJson(this);

	HouseAuthenticationListObj copyWith({List<HouseAuthenticationListObjList>? list}) {
		return HouseAuthenticationListObj()
			..list= list ?? this.list;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class HouseAuthenticationListObjList {
	late int id;
	late String name;
	late String phone;
	late String iDCardType;
	late String iDCard;
	late String enterTime;
	late String image;
	late int roomID;
	late int checkStatus;
	late String roomName;
	late String createTime;
	late String checkTime;
	late String updateTime;

	HouseAuthenticationListObjList();

	factory HouseAuthenticationListObjList.fromJson(Map<String, dynamic> json) => $HouseAuthenticationListObjListFromJson(json);

	Map<String, dynamic> toJson() => $HouseAuthenticationListObjListToJson(this);

	HouseAuthenticationListObjList copyWith({int? id, String? name, String? phone, String? iDCardType, String? iDCard, String? enterTime, String? image, int? roomID, int? checkStatus, String? roomName, String? createTime, String? checkTime, String? updateTime}) {
		return HouseAuthenticationListObjList()
			..id= id ?? this.id
			..name= name ?? this.name
			..phone= phone ?? this.phone
			..iDCardType= iDCardType ?? this.iDCardType
			..iDCard= iDCard ?? this.iDCard
			..enterTime= enterTime ?? this.enterTime
			..image= image ?? this.image
			..roomID= roomID ?? this.roomID
			..checkStatus= checkStatus ?? this.checkStatus
			..roomName= roomName ?? this.roomName
			..createTime= createTime ?? this.createTime
			..checkTime= checkTime ?? this.checkTime
			..updateTime= updateTime ?? this.updateTime;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}